using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
using DevExpress.XtraEditors;

namespace TCCT_CTC_CSDLDangVienV1
{
    public static partial class UI
    {
        public static class ButtonEdit
        {
            #region Apply

            public static void ApplyTextHighLight(DevExpress.XtraEditors.ButtonEdit control)
            {
                control.EnterMoveNextControl = true;
                control.Font = new Font(control.Font.FontFamily, control.Font.Size, FontStyle.Bold);
                control.BackColor = HIGHLIGHT_COLOR;
            }

            public static void ApplyDefault(DevExpress.XtraEditors.ButtonEdit control)
            {
                control.EnterMoveNextControl = true;
                control.BackColor = DEFAULT_BACKCOLOR;
                control.Properties.ReadOnly = false;
                control.Properties.AppearanceDisabled.BackColor = DISABLED_COLOR;

                control.BackColor = DEFAULT_BACKCOLOR;
                control.Properties.ReadOnly = false;
                control.Properties.AppearanceDisabled.BackColor = DISABLED_COLOR;
                control.Properties.AppearanceReadOnly.BackColor = READ_ONLY_COLOR;

            }

            #endregion Apply
        }
    }
}
